﻿@model Mantenimiento.Models.PLANTILLA
@{
    ViewBag.Title = "Detalles Plantilla";
}

<h2>Detalles Plantilla</h2>
 
@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
        
    <fieldset>
        <legend>PLANTILLA</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.PLANTILLA_ID)
            @Html.Label(Model.PLANTILLA_ID + "")
        </div>
        <div class="editor-field">
            @Html.LabelFor(model => model.DESCRIPCION)
            @Html.Label(Model.DESCRIPCION)
        </div>
        <div class="editor-field">
            @Html.LabelFor(model => model.REGIMEN)
            @if(Model.REGIMEN == "1"){            
                @Html.Label("Por Tiempo")
            }else{
                @Html.Label("Por Recorrido")                
            }
        </div>
        <p>
            Lista de Actividades
        </p> 
        @{ Html.RenderPartial("ListActividad", Model.PlantillaDetalle); }                        
        
    </fieldset>
}
<div>
    @Html.ActionLink("Cancelar", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
    @Scripts.Render("~/bundles/jqueryui")
}
